package com.fc.advbox.service;

import com.fc.advbox.dto.user.AdvUserReqDto;
import com.fc.advbox.entity.AdvUserEntity;

import java.util.List;
import java.util.Map;

/**
 * 用户
 *
 * @author Rocky
 */
public interface IUserService {

	AdvUserEntity queryObject(Long userId);

	AdvUserEntity queryByUserName(String name);

	List<AdvUserEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(String mobile, String password);

	void save(AdvUserReqDto user);
	
	void update(AdvUserEntity user);
	
	void delete(Long userId);
	
	void deleteBatch(Long[] userIds);

	AdvUserEntity queryByMobile(String mobile);

	long login(String mobile, String password);

	int updatePassword(Long userId, String oldPwd, String newPwd);

	AdvUserEntity queryDetailInfoById(Long userId);

}
